<?php
/**
 * Created by 绵阳市碳素云信息技术有限责任公司.
 * User: castle
 * Date: 2015/07/24
 * Time: 11:40
 */
function C($name,$value=false){
    $config = Yaf_Application::app()->getConfig();
    $rs = $config;
    if($value==false){
        //Get Config
        $array = explode('.',$name);
        foreach($array as $key){
            $rs = $config->$key;
        }
    }else{

    }
    return $rs==$config?false:$rs;
}